#include <gtk/gtk.h>
#include <libnemo-private/nemo-column-utilities.h>

int 
main (int argc, char* argv[])
{
    gtk_init (&argc, &argv);

    GList *l;
    NemoFile *file;
    GList *nemo_columns;
    int column_num;

    column_num = 0;
    nemo_columns = nemo_get_all_columns ();
    g_print ("------all columns:\n");
    for (l = nemo_columns; l != NULL; l = l->next) {
        NemoColumn *nemo_column;
        char *name;
        char *label;
        char *description;

        column_num++;
        nemo_column = NEMO_COLUMN (l->data);

        g_object_get (nemo_column,
                  "name", &name,
                  "label", &label,
                  "description", &description, NULL);
        g_print ("%d--name:%s\n---label:%s\n---description:%s\n\n",column_num, name, label, description);
    }

    column_num = 0;
    file = nemo_file_get_by_uri ("file:///usr/share/icons");
    nemo_columns = nemo_get_columns_for_file (file);
    g_print ("------file columns:\n");
    for (l = nemo_columns; l != NULL; l = l->next) {
        NemoColumn *nemo_column;
        char *name;
        char *label;
        char *description;

        column_num++;
        nemo_column = NEMO_COLUMN (l->data);

        g_object_get (nemo_column,
                  "name", &name,
                  "label", &label,
                  "description", &description, NULL);
        g_print ("%d--name:%s\n---label:%s\n---description:%s\n\n",column_num, name, label, description);
    }
    nemo_column_list_free (nemo_columns);

    return 0;
}
